package com.xzx.flink.streamapi.window;

import java.sql.Timestamp;
import java.util.StringJoiner;

/**
 * @version 1.0
 * @auther xinzhixuan
 * @date 2022/5/3 14:46
 */
public class UrlViewCount {
    private Long windowStart;
    private Long windowEnd;
    private Long count;
    private String url;

    public Long getWindowStart() {
        return windowStart;
    }

    public void setWindowStart(Long windowStart) {
        this.windowStart = windowStart;
    }

    public Long getWindowEnd() {
        return windowEnd;
    }

    public void setWindowEnd(Long windowEnd) {
        this.windowEnd = windowEnd;
    }

    public Long getCount() {
        return count;
    }

    public void setCount(Long count) {
        this.count = count;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return new StringJoiner(", ", UrlViewCount.class.getSimpleName() + "[", "]")
                .add("windowStart=" + new Timestamp(windowStart))
                .add("windowEnd=" + new Timestamp(windowEnd))
                .add("count=" + count)
                .add("url='" + url + "'")
                .toString();
    }
}
